package com.ztjy.bean;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * orders
 * @author 
 */
@Data
public class Orders implements Serializable {
    private String orderid;//订单编号

    private Integer customid;//客户id  外键--客户表custom


    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ordertime;//订购时间

    private Double ordermoney;//订购金额

    private Integer operatorid;//操作人id  外键--用户表users

    private String status;//审核状态 (0/1/2/3)未审核/审核中/审核通过/审核不通过

    private Integer checkid;//审核id   外键--用户表users

    private Date chectime;//审核时间

    private String opinion;//审核意见

    private Integer warehouseId;//仓库id   外键--warehouse表

    private Integer ddState;//出库状态  0(出库)1(未出库)


    private Custom custom;//自定义属性  客户表
    private Users operatorUser;
    private Users checkUser;
    private Warehouse warehouse;


    private static final long serialVersionUID = 1L;

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public Integer getCustomid() {
        return customid;
    }

    public void setCustomid(Integer customid) {
        this.customid = customid;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public Double getOrdermoney() {
        return ordermoney;
    }

    public void setOrdermoney(Double ordermoney) {
        this.ordermoney = ordermoney;
    }

    public Integer getOperatorid() {
        return operatorid;
    }

    public void setOperatorid(Integer operatorid) {
        this.operatorid = operatorid;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getCheckid() {
        return checkid;
    }

    public void setCheckid(Integer checkid) {
        this.checkid = checkid;
    }

    public Date getChectime() {
        return chectime;
    }

    public void setChectime(Date chectime) {
        this.chectime = chectime;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Integer getDdState() {
        return ddState;
    }

    public void setDdState(Integer ddState) {
        this.ddState = ddState;
    }

    public Custom getCustom() {
        return custom;
    }

    public void setCustom(Custom custom) {
        this.custom = custom;
    }

    public Users getOperatorUser() {
        return operatorUser;
    }

    public void setOperatorUser(Users operatorUser) {
        this.operatorUser = operatorUser;
    }

    public Users getCheckUser() {
        return checkUser;
    }

    public void setCheckUser(Users checkUser) {
        this.checkUser = checkUser;
    }

    public Warehouse getWarehouse() {
        return warehouse;
    }

    public void setWarehouse(Warehouse warehouse) {
        this.warehouse = warehouse;
    }
}